package com.sso.api.web.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.spring.oaassist.web.form.CardOperatorLog;
import com.spring.oaassist.web.model.Custom;
import com.spring.oaassist.web.requestModel.RequestUser;
import com.sso.api.web.model.Baby;
import com.sso.api.web.model.Family;
import com.sso.api.web.model.MemberInfo;

public interface SsoMapper {
	List<Map<String,Object>> queryUserInfo(Map<String, Object> parm);
	List<Custom> getUserByIDS(Map<String, Object> parm);	
	List<Family> queryFamilyInfoByUserId(Map<String, Object> parm);
	List<Custom>  getUserByPhone(Map<String, Object> parm);	
	

	List<Custom> getUserListByIDs(HashMap<String, Object> parm);
	List<Custom>  getUserList(Map<String, Object> parm);
	
	List<HashMap<String,Object>> getUserDetailList(HashMap<String, Object> parm);
	List<HashMap<String,Object>>  getCommonUserList(HashMap<String, Object> parm);
	
	int updateUserPark(HashMap<String, Object> parm);
	
	int getUserCountByPhone(HashMap<String, Object> parm);
	int insertFamily(HashMap<String, Object> parm);
	int insertUser(RequestUser user);
	
	List<HashMap<String,Object>> getRoleList();
	
	List<MemberInfo> queryUserMemberInfo(Map<String, Object> parm);
	List<Map<String, Object>> queryCardOperator(Map<String, Object> parm);
	int insertCardOperatorLog(CardOperatorLog parm);
	List<Map<String, Object>> queryCardOperatorLog(@Param(value="c_user_id") String c_user_id);
	List<Map<String, Object>> selectByPhone(RequestUser user);
	List<Map<String, Object>> queryCustomerList(Map<String, Object> parm);
	List<HashMap<String,Object>>  getUsersList(Map<String, Object> parm);
	
	int updateUserPhoto(Map<String, Object> parm);	
	
	List<HashMap<String,Object>> getBabyList(Map<String, Object> parm);
	List<Baby> getUserBabyList(Map<String, Object> parm);
	int yearNewUserCount();
	
	int updateUser(Map<String, Object> parm);
	List<Map<String, Object>> custCourseApplyUserList(Map<String, Object> parm);	
}
